package com.book.app.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book.app.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * (Book)表数据库访问层
 *
 * @author wjy
 * @since 2021-09-22 08:48:03
 */

public interface BookDao extends BaseMapper<Book> {
    //该方法是数据访问层方法，该方法必须绑定SQL语句
    List<Book> findPager(@Param("page") Integer page,
                         @Param("limit")Integer limit,
                         @Param("bnum")String bnum,
                         @Param("bname")String bname);
}

